home *** CD-ROM | disk | FTP | other *** search
- Path: newsxfer.itd.umich.edu!caen!not-for-mail
- From: elpalmer@kecomp.coldwater.mi.us (Eric L. Palmer)
- Newsgroups: comp.lang.c
- Subject: Wanted: routine to compare file time
- Date: 29 Jan 1996 08:41:46 GMT
- Organization: U of M
- Message-ID: <4ei18a$4pr@srvr1.engin.umich.edu>
- NNTP-Posting-Host: elpalmer@rep00498.reshall.umich.edu
- X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
-
- I would like a C routine to compare the time a file was last accessed
- to the current time, to check, for example, if a file is more than X
- time_units old. I don't have any problems getting the current time,
- but I can't seem to properly get the file time with stat().
-
- Thanks,
-
- - Eric
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Eric L. Palmer | elpalmer@umich.edu, elpalmer@kecomp.coldwater.mi.us
- U of M Computer Engin. | http://www-personal.engin.umich.edu/~elpalmer/
-